package org.example.projecttwo.entity.dto.content.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "收藏操作DTO，用于添加和取消收藏")
public class CollectionDTO {

    @NotNull(message = "用户ID不能为空")
    @Schema(description = "用户ID", example = "1001")
    private Long userId;

    @NotNull(message = "内容类型不能为空")
    @Schema(description = "内容类型：1-文章，2-新闻", example = "1")
    private Integer contentType;

    @NotNull(message = "内容ID不能为空")
    @Schema(description = "内容ID（文章ID或新闻ID）", example = "2001")
    private Long contentId;

    @Schema(description = "收藏备注（可选）", example = "值得一读的文章")
    private String remark;
}